package scf.demo.config;

import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "demo")
public class DemoConfig {

    @Setter
    private Map<String, String> appSecret;

    public String mySecret(String productId) {
        return appSecret.get(productId);
    }

}
